# This is a sample Python script.
# -*- coding: utf-8 -*-

import mqttclient
import globle

# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    for (part) in globle.vehicleid:
        id = part[::-1]
        mqtt_node = mqttclient.MqttClientNode(id, globle.host, globle.port, "/home/hlei/testdata/04.shp")
        mqtt_node.connect_host()
        mqtt_node.loop_forver()
        mqtt_node.pub_data()
